add_subdirectory(lib)

set(rtwizard_TCLSCRIPTS RaytraceWizard.tcl rtwizard)
if(BRLCAD_ENABLE_TCL)
  brlcad_adddata(rtwizard_TCLSCRIPTS tclscripts/rtwizard)
  pkgindex_build(tclscripts/rtwizard)
  tclindex_build(tclscripts/rtwizard)
endif(BRLCAD_ENABLE_TCL)

# Examples

set(
  PictureTypeA_DATA
  examples/PictureTypeA/desc.txt
  examples/PictureTypeA/helpstr.txt
  examples/PictureTypeA/intro.txt
  examples/PictureTypeA/title.txt
  examples/PictureTypeA/preview.small.gif
)
if(BRLCAD_ENABLE_TCL)
  brlcad_adddata(PictureTypeA_DATA tclscripts/rtwizard/examples/PictureTypeA)
endif(BRLCAD_ENABLE_TCL)

set(
  PictureTypeB_DATA
  examples/PictureTypeB/desc.txt
  examples/PictureTypeB/helpstr.txt
  examples/PictureTypeB/intro.txt
  examples/PictureTypeB/title.txt
  examples/PictureTypeB/preview.small.gif
)
if(BRLCAD_ENABLE_TCL)
  brlcad_adddata(PictureTypeB_DATA tclscripts/rtwizard/examples/PictureTypeB)
endif(BRLCAD_ENABLE_TCL)

set(
  PictureTypeC_DATA
  examples/PictureTypeC/desc.txt
  examples/PictureTypeC/helpstr.txt
  examples/PictureTypeC/intro.txt
  examples/PictureTypeC/title.txt
  examples/PictureTypeC/preview.small.gif
)
if(BRLCAD_ENABLE_TCL)
  brlcad_adddata(PictureTypeC_DATA tclscripts/rtwizard/examples/PictureTypeC)
endif(BRLCAD_ENABLE_TCL)

set(
  PictureTypeD_DATA
  examples/PictureTypeD/desc.txt
  examples/PictureTypeD/helpstr.txt
  examples/PictureTypeD/intro.txt
  examples/PictureTypeD/title.txt
  examples/PictureTypeD/preview.small.gif
)
if(BRLCAD_ENABLE_TCL)
  brlcad_adddata(PictureTypeD_DATA tclscripts/rtwizard/examples/PictureTypeD)
endif(BRLCAD_ENABLE_TCL)

set(
  PictureTypeE_DATA
  examples/PictureTypeE/desc.txt
  examples/PictureTypeE/helpstr.txt
  examples/PictureTypeE/intro.txt
  examples/PictureTypeE/title.txt
  examples/PictureTypeE/preview.small.gif
)
if(BRLCAD_ENABLE_TCL)
  brlcad_adddata(PictureTypeE_DATA tclscripts/rtwizard/examples/PictureTypeE)
endif(BRLCAD_ENABLE_TCL)

set(
  PictureTypeF_DATA
  examples/PictureTypeF/desc.txt
  examples/PictureTypeF/helpstr.txt
  examples/PictureTypeF/intro.txt
  examples/PictureTypeF/title.txt
  examples/PictureTypeF/preview.small.gif
)
if(BRLCAD_ENABLE_TCL)
  brlcad_adddata(PictureTypeF_DATA tclscripts/rtwizard/examples/PictureTypeF)
endif(BRLCAD_ENABLE_TCL)

cmakefiles(
  CMakeLists.txt
  ${rtwizard_TCLSCRIPTS}
  ${PictureTypeA_DATA}
  ${PictureTypeB_DATA}
  ${PictureTypeC_DATA}
  ${PictureTypeD_DATA}
  ${PictureTypeE_DATA}
  ${PictureTypeF_DATA}
)

# Local Variables:
# tab-width: 8
# mode: cmake
# indent-tabs-mode: t
# End:
# ex: shiftwidth=2 tabstop=8
